plugins:
  extractors:
  - name: tap-cloudwatch
    variant: meltanolabs
    pip_url: git+https://github.com/meltanolabs/tap-cloudwatch.git@0.0.1
    config:
      log_group_name: API-Gateway-Execution-Logs_i32s35df22/prod
      query: fields @timestamp, @message
      aws_region_name: us-west-2
      start_date: "2022-12-08"
  - name: tap-meltanohub
    variant: autoidm
    pip_url: git+https://github.com/AutoIDM/tap-meltanohub.git@1b99b0ee7853b2d9db36de6afa16b15c1affce7b
    select:
    - plugins.*
  - name: tap-spreadsheets-anywhere
    variant: ets
    pip_url: git+https://github.com/ets/tap-spreadsheets-anywhere.git@5d9115985d3f9e7a568c6dcc68975f0c038253ff
    config:
      tables:
        - path: https://ip-ranges.amazonaws.com
          format: json
          start_date: "2020-01-01T00:00:00Z"
          key_properties: [ip_prefix]
          name: aws_ips
          pattern: "ip-ranges.json"
          json_path: "prefixes"
        - path: https://www.gstatic.com/ipranges
          format: json
          start_date: '2020-01-01T00:00:00Z'
          key_properties: [id]
          name: gcp_ips
          pattern: cloud.json
          json_path: prefixes
        - path: https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63
          format: json
          start_date: "2020-01-01T00:00:00Z"
          key_properties: [id]
          name: azure_ips
          pattern: "ServiceTags_Public_20230116.json"
          json_path: "values"
  - name: tap-slack
    variant: meltanolabs
    pip_url: git+https://github.com/MeltanoLabs/tap-slack.git@0.1.5
    config:
      start_date: '2021-01-01'
      auto_join_channels: false
      selected_channels:
      - C01SK13R9NJ
      channel_types:
      - private_channel
    select:
    - users.*
    - channels.*
    - messages.*

  - name: tap-slack-public
    inherit_from: tap-slack
    config:
      start_date: '2021-01-01'
      auto_join_channels: false
      thread_lookback_days: 1
      selected_channels: []
      channel_types:
      - public_channel
    select:
    - channels.*
    - messages.*
    - threads.*
  - name: tap-google-analytics
    variant: meltanolabs
    pip_url: git+https://github.com/MeltanoLabs/tap-google-analytics.git@v0.0.4
    config:
      view_id: '188392047' # CLI
      # view_id: '188274549' # Meltano Website
      # view_id: '188384771' # Meltano UI
      # view_id: '210710793' # Newsletter
      reports: ./extract/ga_reports/cli_events_report_definition.json
  - name: tap-gitlab
    variant: meltanolabs
    pip_url: git+https://github.com/pnadolny13/tap-gitlab.git@author_usernames
    select:
    - projects.*
    - merge_requests.*
    - issues.*
    - '!issues.description'
    - '!issues.title'
    - '!merge_requests.description'
    - '!merge_requests.title'
  - name: tap-github
    variant: meltanolabs
    pip_url: git+https://github.com/MeltanoLabs/tap-github@d99378778c0cebc446c12b552ee4fd386fdc2610
  - name: tap-github-meltano
    inherit_from: tap-github
    config:
      organizations:
      - MeltanoLabs
      - meltano
      stream_maps:
        issues:
          __filter__: record['type'] = 'issue'
    select:
    - repositories.*
    - pull_requests.*
    - issues.*
    # Exclude text descriptions for internal issues on private repos.
    - '!issues.body'
    - '!issues.title'
    - '!pull_requests.body'
    - '!pull_requests.title'
  - name: tap-github-search
    inherit_from: tap-github
    config:
      start_date: '2022-02-13'
      searches:
      # - name: tap forks
      #   query: tap- fork:only language:Python singer in:readme
      - name: tap non-forks
        query: tap- fork:false language:Python singer in:readme
      # - name: targets forks
      #   query: target- fork:only language:Python singer in:readme
      - name: target non-forks
        query: target- fork:false language:Python singer in:readme
      metrics_log_level: DEBUG
      stream_maps:
        repositories:
          __filter__: >
            ('tap-' in name or 'target-' in full_name)
            and name != 'singer-tap-template'
            and name != 'singer-target-template'
        issues:
          __filter__: record['type'] = 'issue'
    select:
    - repositories.*
    - readme.*
    - issues.*
    - pull_requests.*
    # - issue_comments.*
  - name: tap-snowflake
    variant: transferwise
    pip_url: git+https://github.com/transferwise/pipelinewise-tap-snowflake.git@15699411cc0ff87f11a3f7e637f01a2eb8cbf9da
    config:
      account: epa06486
      password: ${SNOWFLAKE_PASSWORD}
  - name: tap-snowflake-metrics
    inherit_from: tap-snowflake
    metadata:
      '*':
        replication-method: FULL_TABLE
    select:
    - '*FACT_VARIANT_HUB_METRICS.NAME'
    - '*FACT_VARIANT_HUB_METRICS.VARIANT'
    - '*FACT_VARIANT_HUB_METRICS.REPO'
    - '*FACT_VARIANT_HUB_METRICS.PLUGIN_TYPE'
    - '*FACT_VARIANT_HUB_METRICS.PIP_URL'
    - '*FACT_VARIANT_HUB_METRICS.ALL_PROJECTS'
    - '*FACT_VARIANT_HUB_METRICS.ALL_EXECS'
    # NEW ATTRIBUTES
    - '*FACT_VARIANT_HUB_METRICS.ALL_PROJECTS_BY_NAME'
    - '*FACT_VARIANT_HUB_METRICS.ALL_PROJECTS_UNSTRUCT_BY_NAME'
    - '*FACT_VARIANT_HUB_METRICS.ALL_PROJECTS_UNSTRUCT_BY_VARIANT'
    - '*FACT_VARIANT_HUB_METRICS.SUCCESS_PROJECTS_BY_NAME'
    - '*FACT_VARIANT_HUB_METRICS.SUCCESS_PROJECTS_UNSTRUCT_BY_NAME'
    - '*FACT_VARIANT_HUB_METRICS.SUCCESS_PROJECTS_UNSTRUCT_BY_VARIANT'
    - '*FACT_VARIANT_HUB_METRICS.ALL_EXECS_BY_NAME'
    - '*FACT_VARIANT_HUB_METRICS.ALL_EXECS_UNSTRUCT_BY_NAME'
    - '*FACT_VARIANT_HUB_METRICS.ALL_EXECS_UNSTRUCT_BY_VARIANT'
    - '*FACT_VARIANT_HUB_METRICS.SUCCESS_EXECS_BY_NAME'
    - '*FACT_VARIANT_HUB_METRICS.SUCCESS_EXECS_UNSTRUCT_BY_NAME'
    - '*FACT_VARIANT_HUB_METRICS.SUCCESS_EXECS_UNSTRUCT_BY_VARIANT'
  - name: tap-snowflake-audit
    inherit_from: tap-snowflake
    metadata:
      '*':
        replication-method: FULL_TABLE
    select:
    - '*HUB_METRICS_AUDIT.UPDATED_DATE'
    - '*HUB_METRICS_AUDIT.METRIC_TYPE'
  - name: tap-snowflake-singer-activity
    inherit_from: tap-snowflake
    metadata:
      '*':
        replication-method: FULL_TABLE
    select:
    - '*SLACK_ALERTS.TITLE'
    - '*SLACK_ALERTS.BODY'
